package com.meitianhui.convenitenbuy.module.home.contract;

import com.meitianhui.convenitenbuy.base.BasePresenter;
import com.meitianhui.convenitenbuy.base.BaseView;
import com.meitianhui.convenitenbuy.main.model.bean.AppToken;
import com.meitianhui.convenitenbuy.main.model.bean.SignInfo;
import com.meitianhui.convenitenbuy.module.home.model.bean.AreaCode;
import com.meitianhui.convenitenbuy.module.home.model.bean.BannerBean;
import com.meitianhui.convenitenbuy.module.home.model.bean.HomeGoodsInfo;
import com.meitianhui.convenitenbuy.module.home.model.bean.RecommendGoods;
import com.meitianhui.convenitenbuy.module.home.model.bean.ZeroBuyImage;

/**
 * Created by Administrator on 2017/11/1.
 */

public interface HomeContract {

    interface View extends BaseView<Presenter> {
        void getAdSuccess(BannerBean bannerBean);

        void getAppTokenSuccess(AppToken data);

        void signInTodaySuccess(SignInfo data);

        void getBannerSuccess(BannerBean data);

        void getRecommendGoodsSuccess(RecommendGoods data);

        void getZeroBuyImageSuccess(ZeroBuyImage data);

        void getGoodsInfoSuccess(HomeGoodsInfo data);

        void getGoodsInfoFail(int code, String msg);

        void getAreaCodeSuccess(AreaCode data);

        void onDialogDismiss(int code, String msg);

    }

    interface Presenter extends BasePresenter {
        void getAd();

        void getAppToken();

        void signInToday();

        void getBanner();

        void getRecommendGoods();

        void getZeroBuyImage();

        void getGoodsInfo(String pageIndex, String pageSize, String server, String lebelPromotion, String areaId);

        void getAreaCode(String latitude, String longitude, String memberId);

    }
}
